计算机与现代化 ›› 2013, Vol. 1 ›› Issue (7): 117-119,.doi: 10.3969/j.issn.1006-2475.2013.07.031

• 图像处理 • 上一篇    下一篇

基于直方图分析和OTSU算法的文字图像二值化

吴 丹1,蔡晓东1,谢月飞1,曾 威2   

  1. 1.桂林电子科技大学信息与通信学院,广西桂林541004;2.桂林远望智能通信科技有限公司,广西桂林541004
  • 收稿日期:2013-01-23 修回日期:1900-01-01 出版日期:2013-07-17 发布日期:2013-07-17

Binarization of Text Image Based on Histogram Analysis and OTSU Algorithm

WU Dan1, CAI Xiao-dong1, XIE Yue-fei1, ZENG Wei2   

  1. 1. School of Information and Communication, Guilin University of Electronic Technology, Guilin 541004, China;2. Guilin Topintelligent Communication Technology Co., Ltd., Guilin 541004, China
  • Received:2013-01-23 Revised:1900-01-01 Online:2013-07-17 Published:2013-07-17

摘要: 在基于灰度图像的文字提取中,文本图像的二值化算法的优劣直接影响到字符识别的性能。本文对比几种常用的二值化算法,提出一种改进的直方图分析和OTSU算法相结合的算法,该算法利用对直方图信息的区间分析和分类,缩小了查找阈值的范围,最后再利用OTSU求出最优阈值。实验结果表明,该方法能够有效降低光线对OTSU算法的影响,具有较好的分割普适性。

关键词: 自然场景, 二值化, 直方图, OTSU

Abstract: The quality of binarization algorithm of text image directly affects the character recognition performance of text extraction based on gray-level image. Compared with several common binarization algorithms, this paper proposes an improved algorithm combined histogram analysis with OTSU. By means of the interval analysis and classification in histogram information, the algorithm reduces the search range of threshold value, and utilizes OTSU to get the optimal threshold value. The experimental results show that it offers key techniques to reduce the light influence of OTSU, and is of general segmentation applicability.

Key words: natural scenes, binarization, histogram, OTSU